import { BaseOptions } from "../../type";
import { INodeClass, INodeOptions } from "../type";

export interface RectOptions extends INodeOptions{}

const defaultRectOptions: RectOptions = {
    x: 0,
    y: 0,
    width: 100,
    height: 100,
    // color: "#000000",
    // stroke: "#000000",
    // strokeWidth: 1,
    // radius: 0,
}

export class RectNode implements INodeClass{
    nodeOptions: INodeOptions;
    
    canvasOptions: BaseOptions;

    private _drawer(){
    }

    render(nodeOptions: Partial<INodeOptions>, canvasOptions: BaseOptions): void {
        this.nodeOptions = {
            ...defaultRectOptions,
            ...nodeOptions
        };
        this.canvasOptions = canvasOptions;

        this._drawer();
    }
    
}